package com.bandit.service.impl;

import com.bandit.mapper.TeacherMapper;
import com.bandit.pojo.Teacher;
import com.bandit.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl implements TeacherService {

    @Autowired
    TeacherMapper teacherMapper;

    @Override
    public Teacher selectTeacherByTid(int tid) {
        return teacherMapper.selectTeacherByTid(tid);
    }

    @Override
    public List<Teacher> selectTeacherList(Teacher teacher) {
        return teacherMapper.selectTeacherList(teacher);
    }

    @Override
    public int insertTeacher(Teacher teacher) {
        return teacherMapper.insertTeacher(teacher);
    }

    @Override
    public int updateTeacher(Teacher teacher) {
        return teacherMapper.updateTeacher(teacher);
    }

    @Override
    public int deleteTeacherByTID(int tid) {
        return teacherMapper.deleteTeacherByTID(tid);
    }

    @Override
    public int deleteTeacherByTIDS(String[] tids) {
        return teacherMapper.deleteTeacherByTIDS(tids);
    }
}
